package com.example.chat.beans;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@TableName("tb_role")
public class Role {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String name=""; //角色名称
    private String permission=""; //权限点
    private int createAdmin; //创建人
    private long createTime; //创建时间
    private String remark="";//备注

    @TableField(exist = false)
    private String createAdminName;//创建人姓名
}
